import { createStore } from "vuex"
import { createVuexPersistedState } from "vue-persistedstate"
import user from "./modules/user"
import cart from "./modules/cart"
import category from "./modules/category"

export default createStore({
    state: {},
    mutations: {},
    actions: {},
    getters: {},
    modules: {
        user,
        cart,
        category
    },
    plugins: [
        createVuexPersistedState({
            key: "rabbit-client-pc-store",
            whiteList: ["user", "cart"]
        })
    ]
})